# 使用os的walk

from os import walk

for root, dirs, files in walk('.'):
    print(files)